package org.jeecg.modules.medication_order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.common.base.BaseMap;
import org.jeecg.modules.medication_order.entity.MedicationOrder;
import org.jeecg.modules.medication_order.vo.MedicationOrderVo;
import org.jeecg.modules.nurse_user_orders.entity.NurseUserOrders;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
 * @Description: 药房订单
 * @Author: jeecg-boot
 * @Date:   2025-06-20
 * @Version: V1.0
 */
public interface IMedicationOrderService extends IService<MedicationOrder> {

    public BaseMap addByWeChat(MedicationOrderVo medicationOrderVo,String mchId);

    public BaseMap payByWeChat(String out_trade_no);

    public MedicationOrder successPay(MedicationOrder medicationOrder);

    public void payNotify(HttpServletRequest request, String mchId);

    List<Map<String, Object>> listByWeChat(String beginDate, String endDate, String userId, String status);

    BaseMap refund(String outTradeNo);

    public List<MedicationOrder> checkOrderStatus(String orderId);

    BaseMap refundNotify(HttpServletRequest request,String mchid);
}
